package com.frejoys.common.vo.admin;

import com.frejoys.common.util.AppConfigUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author wangzhicheng
 * @version 1.0
 * @date 2024/5/15 10:46
 */
@Data
public class AdminCategoryPageVo {
    @Schema(type = "Integer", name = "id", description = "品类id")
    private Integer id;

    @Schema(type = "Integer", name = "pid", description = "父id")
    private Integer pid;

    @Schema(type = "String", name = "name", description = "名称")
    private String name;

    @Schema(type = "String", name = "site", description = "1首页顶部，2.首页商品列表")
    private String site;

    @Schema(type = "Integer", name = "isShow", description = "0不显示，1显示")
    private Integer isShow;

    @Schema(type = "String", name = "cover", description = "品类封面图")
    private String cover;

    @Schema(type = "String", name = "coverUrl", description = "带域名品类封面图")
    private String coverUrl;

    @Schema(type = "Integer", name = "sort", description = "排序")
    private Integer sort;

    @Schema(type = "Integer", name = "status", description = "状态：0无效，1有效")
    private Integer status;

    //子类
    @Schema(type = "List<AdminCategoryPageVo>", name = "children", description = "子类")
    private List<AdminCategoryPageVo> children;

}
